﻿using UnityEngine;
using System.Collections;

public class CameraMovement : MonoBehaviour {

	public GameObject targetObject;
	public float moveSpeed;

	void Update() {
		if (targetObject) {
			transform.position = Vector3.Lerp (transform.position, 
				targetObject.transform.position, 
				Time.deltaTime * moveSpeed);
		}
	}

}
